@model Course
<form asp-action="Delete" method="post">
    <label asp-for="Coursename">课程名称</label>
    <span>@Model.Coursename</span>
    <button type="submit">删除</button>
    <a asp-action="Index">取消</a>
</form>